<div class="panel panel-primary">
	<!-- Default panel contents -->
	<div class="panel-heading">Sign In</div>
	<div class="panel-body">
		<div>
			<?php
				if(isset($loginAttempted) && $loginAttempted && !$loginSuccess)
				{
					echo renderAlertControl('danger','Login Failure','your username or password is incorrect');
				}
			?>
		</div>
		<form method="POST" role="form" action="login.php" id="login-form" name="login">		
			<div>
				<div class="form-group">
					<label for="txtUsername">Username</label>
					<div class="input-group input-group-sm">
						<span class="input-group-addon">
							<i class="glyphicon glyphicon-user"></i>
						</span>	
						<input type="text" name="txtUsername" class="span4 form-control input-sm" id="txtUsername" placeholder="Username" maxlength="10" value="<?php if(isset($loginUsername) && !empty($loginUsername)){echo $loginUsername;} ?>"/>
					</div>
				</div>
			</div>
			
			<div>
				<div class="form-group">
					<label for="txtPassword">Password</label>
					<div class="input-group input-group-sm">
						<span class="input-group-addon">
							<i class="glyphicon"></i>
						</span>	
						<input type="password" class="form-control input-sm span4" id="txtPassword" name="txtPassword" placeholder="Password"/>
					</div>
				</div>
			</div>
			
			<div class="form-group">
				<div>
					<input type="submit" class="btn btn-primary" name="btnLogin" value="Login">
				</div>
			</div>
		</form>
	</div>
<div>
